import base from '@/api/base'; // 导入接口域名列表
import axios from '@/api/http.js'; // 导入http中创建的axios实例

// 传感器概况
export function querySensorInfo(data) {
  return axios({
    url: `${base}/safety-monitor/getSensorInfo`,
    method: 'POST',
    data
  });
}

// 获取全部区域
export function getAllArea(data) {
  return axios({
    url: `${base}/safety-monitor/getAllArea`,
    method: 'POST',
    data
  });
}

// 传感器超量程监测
export function getOutrange() {
  return axios({
    url: `${base}/sensor/sensor-abnormal/getOutrange`,
    method: 'GET'
  });
}

// 获取传感器的所有全部类型
export function getAllSensorType() {
  return axios({
    url: `${base}/sensor/sensor-abnormal/getAllSensorType`,
    method: 'GET'
  });
}

// 传感器断电断线监测
export function querySensorAbnormal(data) {
  return axios({
    url: `${base}/sensor/sensor-abnormal/getSensorAbnormal`,
    method: 'POST',
    data
  });
}

// 传感器调校监测
export function queryTuning(data) {
  return axios({
    url: `${base}/sensor/sensor-abnormal/getTuning`,
    method: 'POST',
    data
  });
}

// 传感器告警信息
export function queryWarning(data) {
  return axios({
    url: `${base}/sensor/sensor-abnormal/getWarning`,
    method: 'POST',
    data
  });
}
